; demo.def  -  Demonstration Geocode definition
;

;      lookup     input  [length]
KEY:    zip        ZIP      5
key:    state_code state    1        ; avoid non-US addresses


record match:  geomatched            ; record match count in this field
;unique:                              ; = 1
;matched only:                        ; > 0
                                     ; 0 or greater if not specified

overwrite output:                    ; Gives error msg if one of these is
;append output:                      ; NOT defined and output file exists.


LOOKUP DBF:     ZIPPHONE
lookup mdx:     zipphone             ; Defaults to dbf name.
lookup tag:     def_tag              ; Defaults to def_tag.
lookup exp:     upper(zip)           ; Needed if no mdx exists for lookup dbf.
;lookup tag:     2nd_tag
;lookup exp:     upper(city + state_code)
;lookup tag:     third
;lookup exp:     county + city

INPUT DBF:      XLIST                ; File to be geocoded.
;input mdx:      xlist

OUTPUT DBF:     TEMP
; Inplace:

record distance:  dist
center: 40:35N  79:35w
;Max Range: 1000
;Min Range: 100
UNITS:  miles

first match:

; match only PA in field  STATE
;skip 15066 in field Zip 2
